package com.qianniu.napi.admin.entity;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 投票设置
 * </p>
 *
 * @author chenxuebin
 * @since 2020-01-10
 */
@TableName("t_goods_toupiao")
public class GoodsToupiao extends Model<GoodsToupiao> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.INPUT)
	private Long gid;
    /**
     * 是否开放投票
     */
	private Integer kftoupiao;
    /**
     * 是否开放报名
     */
	private Integer kfbaoming;
    /**
     * 是否礼物投票
     */
	private Integer liwutoupiao;
    /**
     * 单日投票
     */
	private Integer danripiao;
	private Integer jiangshu;
    /**
     * 创建日期
     */
	private Date createtime;


	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Integer getKftoupiao() {
		return kftoupiao;
	}

	public void setKftoupiao(Integer kftoupiao) {
		this.kftoupiao = kftoupiao;
	}

	public Integer getKfbaoming() {
		return kfbaoming;
	}

	public void setKfbaoming(Integer kfbaoming) {
		this.kfbaoming = kfbaoming;
	}

	public Integer getLiwutoupiao() {
		return liwutoupiao;
	}

	public void setLiwutoupiao(Integer liwutoupiao) {
		this.liwutoupiao = liwutoupiao;
	}

	public Integer getDanripiao() {
		return danripiao;
	}

	public void setDanripiao(Integer danripiao) {
		this.danripiao = danripiao;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getJiangshu() {
		return jiangshu;
	}

	public void setJiangshu(Integer jiangshu) {
		this.jiangshu = jiangshu;
	}

	@Override
	protected Serializable pkVal() {
		return this.gid;
	}

	@Override
	public String toString() {
		return "GoodsToupiao{" +
			"gid=" + gid +
			", kftoupiao=" + kftoupiao +
			", kfbaoming=" + kfbaoming +
			", liwutoupiao=" + liwutoupiao +
			", danripiao=" + danripiao +
			", createtime=" + createtime +
			"}";
	}
}
